package com.util;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;

public class MysqlUtil {  
    public static Connection getConnection() { 
    	try {
			return JdbcUtil.getConnection("mysql.properties");
		} catch (Exception e) {
			e.printStackTrace();
		}
    	
    	return null;
    }  
    
    public static void releaseDB(PreparedStatement ps) {  
    	JdbcUtil.releaseDB(ps);
    }
    
    public static void releaseDB(ResultSet resultSet, Statement statement, Connection connection) { 
    	JdbcUtil.releaseDB(resultSet, statement, connection);
    }
} 